#include <stdio.h>

void swap(int *a, int *b)
{
    int temp;
    temp = *a;
    *a = *b;
    *b = temp;
}

int main()
{
    int a, b;

    printf("请输入两个整数：\n");
    scanf("%d,%d", a, b);

    printf("交换前：\n");
    printf("a = %d,b = %d\n", a , b);

    swap(&a, &b);

    prinf("交换后：\n");
    printf("a = %d, = %d", a, b);

    return 0;
}